Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved Error:(1) Attribute insetForeground has already been defined. … #211

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void init(Context context, AttributeSet attrs, int defStyle) {
if (a == null) {
return;
}
mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_scrimInsetForeground);
mInsetForeground = a.getDrawable(R.styleable.ScrimInsetsView_insetForegroundYaaic);
a.recycle();

setWillNotDraw(true);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/item_drawer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
android:clickable="true"
android:fitsSystemWindows="true"
android:paddingTop="24dp"
app:scrimInsetForeground="@color/primary_dark">
app:insetForegroundYaaic="@color/primary_dark">

<LinearLayout
android:id="@+id/drawer_content"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<resources>
<declare-styleable name="ScrimInsetsView">
<attr name="scrimInsetForeground" format="reference|color" />
<attr name="insetForegroundYaaic" format="reference|color" />
</declare-styleable>
</resources>