Skip to content

Commit

Permalink
修改文案错误,禁止切换横屏
Browse files Browse the repository at this point in the history
  • Loading branch information
sues-lee committed Mar 12, 2015
1 parent e92cabb commit c6ea5c0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
4 changes: 2 additions & 2 deletions SUESNews/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.example.lee.suesnews"
minSdkVersion 16
targetSdkVersion 21
versionCode 2
versionName "beta-1.0.1"
versionCode 3
versionName "beta-1.0.2"
}
buildTypes {
release {
Expand Down
5 changes: 5 additions & 0 deletions SUESNews/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<activity
android:name="com.example.lee.suesnews.ui.WelcomeActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.Transparent" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -34,6 +35,7 @@
android:name="com.example.lee.suesnews.ui.MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
Expand All @@ -44,6 +46,7 @@
<activity
android:name="com.example.lee.suesnews.ui.NewsContentActivity"
android:label="@string/title_activity_news_content"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.Transparent" >
</activity>
<activity
Expand All @@ -54,12 +57,14 @@
<activity
android:name="com.example.lee.suesnews.ui.AboutActivity"
android:label="@string/about"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.Transparent" >
</activity>

<!--用户反馈-->
<activity
android:name="com.umeng.fb.ConversationActivity"
android:screenOrientation="portrait"
android:theme="@style/AppTheme"/>

<!-- share SDK -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.annotation.TargetApi;
import android.app.FragmentManager;
import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.os.Build;
Expand Down Expand Up @@ -70,6 +71,11 @@ protected void onPause() {
MobclickAgent.onPause(this);
}

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
}

/**
* 根据int得出对应的图标状态
* @param state
Expand Down
7 changes: 4 additions & 3 deletions SUESNews/app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
android:layout_height="match_parent"
android:background="@color/back_ground_color"
tools:context="com.example.lee.suesnews.ui.AboutActivity">
<include
layout="@layout/common_toolbar"/>

<ScrollView
android:layout_width="wrap_content"
android:layout_height="wrap_content">
Expand Down Expand Up @@ -90,7 +89,7 @@
android:layout_height="wrap_content"
android:layout_margin="@dimen/view_margin"
android:textSize="@dimen/text_size_normal"
android:text="此应用为熟悉最新设计规范以及新开发环境所做,源代码开源,Gtihub地址:https://github.com/sues-lee/SuesNews 欢迎大家Star"
android:text="此应用为熟悉最新设计规范以及新开发环境所做,源代码开源,GitHub地址:https://github.com/sues-lee/SuesNews 欢迎大家Star"
android:autoLink="all|web"
/>
<TextView
Expand All @@ -105,4 +104,6 @@
</LinearLayout>
</ScrollView>

<include
layout="@layout/common_toolbar"/>
</com.example.lee.suesnews.ui.widget.GestureFrameLayout>

0 comments on commit c6ea5c0

Please sign in to comment.