Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.example.projekt.sasa">
- <uses-permission android:name="android.permission.INTERNET" />
- <application
- android:name="com.example.projekt.sasa.AppController"
- android:allowBackup="true"
- android:icon="@mipmap/ic_launcher"
- android:label="@string/app_name"
- android:supportsRtl="true" >
- <activity
- android:name=".SplashScreen"
- android:label="MHMA"
- android:theme="@style/NoActionBarTheme">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity
- android:name=".MainActivity"
- android:label="@string/app_name"
- android:theme="@style/ToolBarStyle">
- <intent-filter>
- <action android:name="android.intent.action.MAINACTIVITY" />
- <category android:name="android.intent.category.DEFAULT" />
- </intent-filter>
- </activity>
- </application>
- </manifest>
- ---------------------------------------------------------------------------------------------------------------------------------------
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/drawer_layout"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:openDrawer="start"
- android:background="@color/feed_bg"
- android:orientation="vertical">
- <LinearLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:fitsSystemWindows="true"
- tools:context=".MainActivity"
- android:layout_marginLeft="@dimen/feed_item_margin"
- android:layout_marginRight="@dimen/feed_item_margin"
- android:layout_marginTop="@dimen/feed_item_margin"
- android:background="@drawable/bg_parent_rounded_corner"
- android:orientation="vertical"
- android:paddingBottom="@dimen/feed_item_padding_top_bottom"
- android:paddingTop="@dimen/feed_item_padding_top_bottom">
- <android.support.v7.widget.Toolbar
- xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="?attr/colorPrimary"
- android:minHeight="?attr/actionBarSize"/>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:paddingLeft="@dimen/feed_item_padding_left_right"
- android:paddingRight="@dimen/feed_item_padding_left_right" >
- <com.android.volley.toolbox.NetworkImageView
- android:id="@+id/profilePic"
- android:layout_width="@dimen/feed_item_profile_pic"
- android:layout_height="@dimen/feed_item_profile_pic"
- android:scaleType="fitCenter" >
- </com.android.volley.toolbox.NetworkImageView>
- <LinearLayout
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- android:paddingLeft="@dimen/feed_item_profile_info_padd" >
- <TextView
- android:id="@+id/name"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="@dimen/feed_item_profile_name"
- android:textStyle="bold" />
- <TextView
- android:id="@+id/timestamp"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textColor="@color/timestamp"
- android:textSize="@dimen/feed_item_timestamp" />
- </LinearLayout>
- </LinearLayout>
- <TextView
- android:id="@+id/txtStatusMsg"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:paddingBottom="5dp"
- android:paddingLeft="@dimen/feed_item_status_pad_left_right"
- android:paddingRight="@dimen/feed_item_status_pad_left_right"
- android:paddingTop="@dimen/feed_item_status_pad_top" />
- <TextView
- android:id="@+id/txtUrl"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:linksClickable="true"
- android:paddingBottom="10dp"
- android:paddingLeft="@dimen/feed_item_status_pad_left_right"
- android:paddingRight="@dimen/feed_item_status_pad_left_right"
- android:textColorLink="@color/link" />
- <com.example.projekt.sasa.FeedImageView
- android:id="@+id/feedImage1"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:scaleType="fitXY"
- android:visibility="visible" />
- </LinearLayout>
- <android.support.design.widget.NavigationView android:id="@+id/nav_view"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_gravity="start"
- android:fitsSystemWindows="true"
- app:headerLayout="@layout/nav_header_main"
- app:menu="@menu/activity_main_drawer" />
- </android.support.v4.widget.DrawerLayout>
- ---------------------------------------------------------------------------------------------------------------------------------------
- <resources>
- <!-- Base application theme. -->
- <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
- <!-- Customize your theme here. -->
- <item name="colorPrimary">@color/colorPrimary</item>
- <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
- <item name="colorAccent">@color/colorAccent</item>
- </style>
- <style name="ToolBarStyle" parent="Theme.AppCompat.Light.DarkActionBar">
- <item name="windowNoTitle">true</item>
- <item name="windowActionBar">false</item>
- ...
- </style>
- <style name="NoActionBarTheme" parent="Theme.Design.Light.NoActionBar">
- </style>
- <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
- <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
- </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement