草庐IT

custom-font

全部标签

android - 对话 fragment : Using AlertDialog with custom layout

我正在使用FragmentsAPI支持重写我的应用程序。在原始应用程序中,我有一个像这样创建的AlertDialog:LayoutInflaterinflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);Viewview=inflater.inflate(R.layout.button_dialog,null);AlertDialog.Builderbuilder=newAlertDialog.Builder(this);builder.setView(view);ListViewmListVi

android - 对话 fragment : Using AlertDialog with custom layout

我正在使用FragmentsAPI支持重写我的应用程序。在原始应用程序中,我有一个像这样创建的AlertDialog:LayoutInflaterinflater=(LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);Viewview=inflater.inflate(R.layout.button_dialog,null);AlertDialog.Builderbuilder=newAlertDialog.Builder(this);builder.setView(view);ListViewmListVi

android - Android Studio中的 Assets 文件夹?

我正在尝试使用自定义字体,并且我读过我想将字体放在assets/fonts.xml中。我正在使用AndroidStudio,但我似乎没有Assets文件夹。所以我创造了一个。但是当我将assets文件夹放在src/main中时,我的应用程序崩溃了。我使用此代码加载我的字体。TypefacefontRegular=Typeface.createFromAsset(getAssets(),"fonts/DroidSans.ttf");TypefacefontBold=Typeface.createFromAsset(getAssets(),"fonts/DroidSans-Bold.ttf

android - Android Studio中的 Assets 文件夹?

我正在尝试使用自定义字体,并且我读过我想将字体放在assets/fonts.xml中。我正在使用AndroidStudio,但我似乎没有Assets文件夹。所以我创造了一个。但是当我将assets文件夹放在src/main中时,我的应用程序崩溃了。我使用此代码加载我的字体。TypefacefontRegular=Typeface.createFromAsset(getAssets(),"fonts/DroidSans.ttf");TypefacefontBold=Typeface.createFromAsset(getAssets(),"fonts/DroidSans-Bold.ttf

android - 为完整的 android 应用程序添加自定义字体

在我的应用程序中,我需要对所有TextView和编辑文本字段使用helvetica字体。除了对每个textview使用settypeface方法之外,还有什么方法可以做到这一点?任何建议都会有很大帮助。提前致谢! 最佳答案 我自己想通了。这是我使用的代码。我创建自定义TextView自定义字体作为默认字体。publicclassMyTextViewextendsTextView{publicMyTextView(Contextcontext,AttributeSetattrs,intdefStyle){super(context,a

android - 为完整的 android 应用程序添加自定义字体

在我的应用程序中,我需要对所有TextView和编辑文本字段使用helvetica字体。除了对每个textview使用settypeface方法之外,还有什么方法可以做到这一点?任何建议都会有很大帮助。提前致谢! 最佳答案 我自己想通了。这是我使用的代码。我创建自定义TextView自定义字体作为默认字体。publicclassMyTextViewextendsTextView{publicMyTextView(Contextcontext,AttributeSetattrs,intdefStyle){super(context,a

android - Android Studio 中的 Eclipse "Custom debug Keystore"相当于什么?

在使用GoogleMapsAPI时,我习惯于在Eclipse中使用自定义调试key(实际上是我的生产key)这种操作让我可以在调试和发布版本中为map和大多数GooglePlay服务(应用计费)使用相同的APIkey。这真的很方便,因为不需要更改list中的key。不幸的是,随着迁移到AndroidStudio,我缺少此功能。知道在哪里可以找到这个选项吗?非常感谢。 最佳答案 您在build.gradle文件中定义了一个keystore。请参阅此处的签名配置部分:https://developer.android.com/studi

android - Android Studio 中的 Eclipse "Custom debug Keystore"相当于什么?

在使用GoogleMapsAPI时,我习惯于在Eclipse中使用自定义调试key(实际上是我的生产key)这种操作让我可以在调试和发布版本中为map和大多数GooglePlay服务(应用计费)使用相同的APIkey。这真的很方便,因为不需要更改list中的key。不幸的是,随着迁移到AndroidStudio,我缺少此功能。知道在哪里可以找到这个选项吗?非常感谢。 最佳答案 您在build.gradle文件中定义了一个keystore。请参阅此处的签名配置部分:https://developer.android.com/studi

android - 使用 libjingle 在 Android 上使用 "custom"Capturer 创建 WebRTC VideoTrack

如何使用“自定义”视频捕获器来创建VideoTrack并提供帧?创建VideoTrack的经典方法是:1-获取VideoCapturer实例VideoCapturercapturer=VideoCapturer.create(name);2-创建视频源VideoSourcevideoSource=peerconnectionFactory.createVideoSource(capturer,videoConstraints);3-使用视频源创建VideoTrackVideoTrackvideoTrack=peerconnectionFactory.createVideoTrack("

android - 使用 libjingle 在 Android 上使用 "custom"Capturer 创建 WebRTC VideoTrack

如何使用“自定义”视频捕获器来创建VideoTrack并提供帧?创建VideoTrack的经典方法是:1-获取VideoCapturer实例VideoCapturercapturer=VideoCapturer.create(name);2-创建视频源VideoSourcevideoSource=peerconnectionFactory.createVideoSource(capturer,videoConstraints);3-使用视频源创建VideoTrackVideoTrackvideoTrack=peerconnectionFactory.createVideoTrack("