Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #74 from zeoflow/loader-layout
Browse files Browse the repository at this point in the history
Created shimmer layout
  • Loading branch information
teogor authored Apr 4, 2021
2 parents 4658d45 + 16e83ca commit e391177
Show file tree
Hide file tree
Showing 10 changed files with 1,674 additions and 0 deletions.
1 change: 1 addition & 0 deletions material-elements/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def srcDirs = [
'com/zeoflow/material/elements/ripple',
'com/zeoflow/material/elements/slidingpanel',
'com/zeoflow/material/elements/shape',
'com/zeoflow/material/elements/shimmer',
'com/zeoflow/material/elements/shadow',
'com/zeoflow/material/elements/slider',
'com/zeoflow/material/elements/snackbar',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (C) 2021 ZeoFlow SRL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.zeoflow.material.elements.shimmer;

import android.view.View;

@SuppressWarnings({"unused", "RedundantSuppression"})
class ResourceExtension
{

public static float dp2px(float dp, View view)
{
return dp * view.getResources().getDisplayMetrics().density * 0.5f;
}

}
Loading

0 comments on commit e391177

Please sign in to comment.