Skip to content

Commit

Permalink
Visual changes in patreon screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Str4tocaster committed Oct 4, 2017
1 parent 7214702 commit 7174903
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import com.xabber.android.R;
import com.xabber.android.data.http.IXabberCom;
import com.xabber.android.data.http.PatreonManager;
import com.xabber.android.ui.color.BarPainter;

/**
* Created by valery.miller on 03.10.17.
Expand Down Expand Up @@ -44,8 +43,6 @@ public void onClick(View v) {
NavUtils.navigateUpFromSameTask(PatreonAppealActivity.this);
}
});
BarPainter barPainter = new BarPainter(this, toolbar);
barPainter.setDefaultColor();

WebView webView = (WebView) findViewById(R.id.webView);
webView.loadUrl(IXabberCom.APPEAL_URL);
Expand Down
31 changes: 12 additions & 19 deletions xabber/src/main/res/layout/activity_patreon_appeal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,21 @@
android:layout_height="match_parent"
>

<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
>

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar_default"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
app:layout_scrollFlags="scroll|enterAlways"
/>

</android.support.design.widget.AppBarLayout>

<com.xabber.android.ui.widget.NestedWebView
<WebView
android:id="@+id/webView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"/>

<android.support.v7.widget.Toolbar xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/toolbar_default"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
app:titleTextAppearance="@style/ToolbarTitle"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:popupTheme="?attr/toolbar_popup_theme"
android:background="#3f000000"
/>

</android.support.design.widget.CoordinatorLayout>

0 comments on commit 7174903

Please sign in to comment.