我想第一次使用Proguard 4.9导出我的应用程序.但是在导出时我在控制台中遇到了奇怪的错误.这里是 -
[2013-06-11 14:59:42 - Project1] Proguard returned with error code 1. See console
[2013-06-11 14:59:42 - Project1] proguard.ParseException: Expecting type and name instead of just '***' before '(' in line 193 of file 'D:\Project Works\Android\Project1\bin\proguard.txt',
[2013-06-11 14:59:42 - Project1] included from argument number 4
[2013-06-11 14:59:42 - Project1] at proguard.ConfigurationParser.parseMemberSpecificationArguments(ConfigurationParser.java:889)
[2013-06-11 14:59:42 - Project1] at proguard.ConfigurationParser.parseClassSpecificationArguments(ConfigurationParser.java:729)
[2013-06-11 14:59:42 - Project1] at proguard.ConfigurationParser.parseKeepClassSpecificationArguments(ConfigurationParser.java:516)
[2013-06-11 14:59:42 - Project1] at proguard.ConfigurationParser.parse(ConfigurationParser.java:165)
[2013-06-11 14:59:42 - Project1] at proguard.ProGuard.main(ProGuard.java:476)
Run Code Online (Sandbox Code Playgroud)
这是第192和193行的bin\proguard.txt文件,其中出现错误
# onClick res/layout/tmenu.xml …Run Code Online (Sandbox Code Playgroud) 我想创建ViewPager一个围绕它的getWidth()和getHeight()轴旋转的滑动。我尝试过,但所有这些转换只能通过具有各种效果的垂直和水平来实现。
有什么方法或提示可以开发这种类型ViewPager吗?
编辑 - 解释它会是什么样的旋转
Axis - getWidth,getHeight应该是枢轴点,一旦我滑动它就应该旋转,对于下一页,它应该从 (0, getHeight) 轴旋转。为了简化,考虑这个简单的场景——
ViewPager应该从第 1 页旋转到第 2 页。ViewPager应该从第 1 页旋转到第 4 页。getWidth,getHeight第1页。因此,对于下一页,它将始终为0,getHeight作为轴,而对于上一页,将始终为getWidth,0作为轴。我的应用程序中有标签.每个标签都有不同的片段,并有不同的菜单.下面是我正在使用的布局
<?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"
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/background">
<include
layout="@layout/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_scrollFlags="scroll|enterAlways" />
</android.support.design.widget.AppBarLayout>
<com.CustomViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
<android.support.design.widget.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="end"
android:background="@color/background"
app:layout_anchor="@id/view_pager"
app:layout_anchorGravity="bottom|center_horizontal"
app:layout_behavior="com.widget.ScrollTabBehavior"
app:tabBackground="@color/background"
app:tabIndicatorColor="@color/toolbar"
app:tabIndicatorHeight="0dp"
app:tabMode="fixed"
app:tabPaddingEnd="0dp"
app:tabPaddingStart="0dp" />
</android.support.design.widget.CoordinatorLayout>
<RelativeLayout
android:id="@+id/left_drawer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
android:layout_marginLeft="-64dp"
android:layout_marginStart="-64dp"
android:background="@color/toolbar"
android:choiceMode="singleChoice"
android:divider="@android:color/transparent"
android:dividerHeight="0dp">
<ImageButton
android:id="@+id/close_btn"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:background="@android:color/transparent"
android:padding="5dp"
android:src="@drawable/close_icon" />
<view
android:id="@+id/drawerlist"
class="android.support.v7.widget.RecyclerView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/close_btn" />
</RelativeLayout>
</android.support.v4.widget.DrawerLayout>
Run Code Online (Sandbox Code Playgroud)
现在,onCreate() …
我打算为我们的网站开发一个应用程序,但主要的担忧之一是我需要使用第 3 方支付网关,该网关仅提供适用于 Java 中的 android 和 Objective-C 中的 iOS 的 SDK。
我想知道该应用程序是否适合使用 React-Native 或 Ionic。我不确定这些框架中的哪一个支持原生集成并且工作完美。
希望有经验的人帮忙指教一下。
谢谢。